package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.vo.StaticVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ByOrdersItemMapper;
import com.ruoyi.system.domain.ByOrdersItem;
import com.ruoyi.system.service.IByOrdersItemService;

/**
 * ordersItemService业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-01
 */
@Service
public class ByOrdersItemServiceImpl implements IByOrdersItemService 
{
    @Autowired
    private ByOrdersItemMapper byOrdersItemMapper;

    /**
     * 查询ordersItem
     * 
     * @param id ordersItem主键
     * @return ordersItem
     */
    @Override
    public ByOrdersItem selectByOrdersItemById(String id)
    {
        return byOrdersItemMapper.selectByOrdersItemById(id);
    }

    /**
     * 查询ordersItem
     *
     * @param id ordersItem主键
     * @return ordersItem
     */
    @Override
    public List<ByOrdersItem> getByOrderId(String id)
    {
        return byOrdersItemMapper.getByOrderId(id);
    }

    /**
     * 查询ordersItem列表
     * 
     * @param byOrdersItem ordersItem
     * @return ordersItem
     */
    @Override
    public List<ByOrdersItem> selectByOrdersItemList(ByOrdersItem byOrdersItem)
    {
        return byOrdersItemMapper.selectByOrdersItemList(byOrdersItem);
    }

    /**
     * 新增ordersItem
     * 
     * @param byOrdersItem ordersItem
     * @return 结果
     */
    @Override
    public int insertByOrdersItem(ByOrdersItem byOrdersItem)
    {
        return byOrdersItemMapper.insertByOrdersItem(byOrdersItem);
    }

    /**
     * 修改ordersItem
     * 
     * @param byOrdersItem ordersItem
     * @return 结果
     */
    @Override
    public int updateByOrdersItem(ByOrdersItem byOrdersItem)
    {
        return byOrdersItemMapper.updateByOrdersItem(byOrdersItem);
    }

    /**
     * 批量删除ordersItem
     * 
     * @param ids 需要删除的ordersItem主键
     * @return 结果
     */
    @Override
    public int deleteByOrdersItemByIds(String[] ids)
    {
        return byOrdersItemMapper.deleteByOrdersItemByIds(ids);
    }

    /**
     * 删除ordersItem信息
     * 
     * @param id ordersItem主键
     * @return 结果
     */
    @Override
    public int deleteByOrdersItemById(String id)
    {
        return byOrdersItemMapper.deleteByOrdersItemById(id);
    }


    @Override
    public List<StaticVo> getMonth(String beginTime, String endTime) {
        return byOrdersItemMapper.getMonth(beginTime,endTime);
    }
}
